package com.zhang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * 公民实体类
 */
@Data
@NoArgsConstructor
public class ManBean {
    private int id;
    private String name;
    private LocalDate birthday;

    public ManBean(String name, String birthday) {
        this.name = name;
        this.birthday = LocalDate.parse(birthday);
    }

    @Override
    public String toString() {
        return "ManBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                '}'+"\n";
    }
}
